<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="TingGe Blog Agile agile JavaScript NodeJS">
  <meta name="author" content="TingGe<505253293@163.com>">
  <title>听歌实验室</title>
  <link type="image/x-icon" rel="shortcut icon" href="https://avatars3.githubusercontent.com/u/4074517?v=3&s=40" />
  <link rel="stylesheet" type="text/css" href="/lib/bootstrap/dist/css/bootstrap.min.css" media="screen">
  <link href="https://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">
  <link href="/css/landing-page.css" rel="stylesheet">
  <link href="/css/screenshots.css" rel="stylesheet">
  <style media="screen">
    #main {
      padding-top: 55px;
    }
  </style>
  <script type="text/javascript" src="/lib/jquery/dist/jquery.min.js"></script>
  <script type="text/javascript" src="/lib/html2canvas/dist/html2canvas.min.js"></script>
  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>
  <!-- Navigation -->
  <nav class="navbar navbar-default navbar-fixed-top topnav" role="navigation">
    <div class="container topnav">
      <!-- Brand and toggle get grouped for better mobile display -->
      <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand topnav" href="/">
          <i class="fa fa-flask icon-3x" aria-hidden="true"></i> 听歌实验室
        </a>
      </div>
      <!-- Collect the nav links, forms, and other content for toggling -->
      <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
        <ul class="nav navbar-nav navbar-right">
          <li>
            <a href="/html/js.html">JavaScript/NodeJS</a>
          </li>
          <li>
            <a href="/index.html#agile">敏捷/项目管理(Agile/PMP)</a>
          </li>
          <li>
            <a href="/html/cloud-bi.html">云商业智能(Cloud BI)</a>
          </li>
          <li>
            <a href="/html/iot.html">物联网(WoT/IoT)</a>
          </li>
          <li>
            <a href="/html/me.html">关于我</a>
          </li>
        </ul>
      </div>
      <!-- /.navbar-collapse -->
    </div>
    <!-- /.container -->
  </nav>
  <div id="main" class="container">
    <div class="row">
      <div id="article" class="col-md-9 content-container">
        <h1 id="docker-gitlab-">Docker 中搭建 GitLab服务器</h1>
<p>[TOC]</p>
<h2 id="sameersbn-gitlab-"><a href="https://hub.docker.com/r/sameersbn/gitlab/">sameersbn/gitlab</a> 一键部署方案</h2>
<h3 id="-">前置条件</h3>
<p>须已安装 <a href="https://docs.docker.com/engine/installation/linux/ubuntulinux/">docker</a>。</p>
<p>在 Ubuntu Trusty 14.04 (LTS)  环境，建议 <strong>sudo</strong> 或 <strong>root</strong> 下执行。</p>
<h3 id="docker-compose-">docker-compose 安装</h3>
<ol>
<li><p>安装 <code>pip</code> 包管理器</p>
<pre><code class="lang-shell">apt-get install pip
</code></pre>
</li>
<li><p>安装 <code>docker-compose</code></p>
<pre><code class="lang-shell">pip install docker-compose
</code></pre>
</li>
</ol>
<h3 id="-gitlab">一键部署 GitLab</h3>
<pre><code class="lang-shell">wget https://raw.githubusercontent.com/sameersbn/docker-gitlab/master/docker-compose.yml 
docker-compose up
</code></pre>
<h3 id="-">验证</h3>
<ol>
<li>如启动成功，浏览器登陆  <a href="http://localhost:10080/">http://localhost:10080</a>，设置 root 初始密码。</li>
<li>登陆后，即可创建项目、添加用户等操作。</li>
</ol>
<h2 id="-">附录</h2>
<ul>
<li><a href="https://www.damagehead.com/docker-gitlab-ci/">Zero to GitLab CI in 5 seconds or less*</a></li>
<li><a href="http://herry2013git.blog.163.com/blog/static/219568011201341111240751">gitlab多人协同工作</a></li>
</ul>

      </div>
      <div class="col-md-3" style="padding-top:20px;">
        <iframe src="http://githubbadge.appspot.com/tingge?a=0" style="border: 0;height: 142px;width: 200px;overflow: hidden;" frameBorder="0"></iframe>
      </div>
    </div>
  </div>
  <a id="html2canvas" title="截图下载-快照">&nbsp;</a>
  <script src="/lib/bootstrap/dist/js/bootstrap.min.js"></script>
  <script src="/js/article.js" charset="utf-8"></script>
  <!-- justice.js https://github.com/okor/justice  -->
  <script src="/lib/justice.min.js" charset="utf-8"></script>
  <!-- instantclick -->
  <script src="/lib/instantclick.js" charset="utf-8"></script>
  <script type="text/javascript" data-no-instant>
    Justice.init();
  </script>
</body>

</html>
